package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.UserBehaviorRebateOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2025/3/3
 */
@Mapper
public interface IUserBehaviorRebateOrderDao {

    List<UserBehaviorRebateOrder> queryUserBehaviorRebateOrderList(@Param("userId") String userId);

    void batchInsert(@Param("list") List<UserBehaviorRebateOrder> list);

    List<UserBehaviorRebateOrder> queryByUserIdAndBehaviorTypeAndOrderDate(@Param("userId") String userId, @Param("behaviorType") String behaviorType, @Param("orderDate") LocalDate orderDate);
}
